//
//  HomeListDetailModel.swift
//  MT
//
//  Created by M on 2019/12/13.
//  Copyright © 2019 张强. All rights reserved.
//

import UIKit
import ObjectMapper
import MTCategory

/// 对应接口最外层数据类
class HomeLikeComponentModel: Mappable {
    /// 请求是否成功的code
    var code: Int?
    /// 请求返回的Message
    var message: String?
    /// 时间戳
    var timestamp: TimeInterval?
    /// 点赞数量
    var result: Int = 0
    
    required public init?(map: Map) {
        
    }
    
    open func mapping(map: Map) {
        code    <- map["code"]
        message <- map["message"]
        result <- map["result"]
    }
}


class HomeListDetailReponseModel1: Mappable {
    
    var list: [HomeListDetailModel1]?
    
    required init?(map: Map) {
        
    }
    
    open func mapping(map: Map) {
        list          <- map["list"]
    }
}

class HomeListDetailModel1: Mappable {
    
    /// 用户Id
    var nick_name: String?
    var head: String?
    var thread_id: Int?
    var first_post_id: Int?
    var create_time: Int?
    var play_count: Int?
    var post_num: Int?
    var agree_num: Int?
    var share_num: Int?
    var has_agree: Int?
    var freq_num: Int?
    var forum_id: Int?
    var title: String?
    var source: Int?
    var weight: Int?
    var abtest_tag: Int?
    var thumbnail_width: Int?
    var thumbnail_height: Int?
    var video_md5: Int?
    var video_url: String?
    var video_duration: Int?
    var video_width: Int?
    var video_height: Int?
    var video_length: Int?
    var video_type: Int?
    var cover_text: String?
    var thumbnail_url: String?
    var video_log_id: Int?
    var auditing: Int?
    var format_matched: Int?
    var origin_video_url: String?
    var video_size: Int?
    
    required init?(map: Map) {
        
    }
    
    open func mapping(map: Map) {
        nick_name <- map["nick_name"]
        head <- map["head"]
        thread_id <- map["thread_id"]
        first_post_id <- map["first_post_id"]
        create_time <- map["create_time"]
        play_count <- map["play_count"]
        post_num <- map["post_num"]
        agree_num <- map["agree_num"]
        share_num <- map["share_num"]
        has_agree <- map["has_agree"]
        freq_num <- map["freq_num"]
        forum_id <- map["forum_id"]
        title <- map["title"]
        source <- map["source"]
        weight <- map["weight"]
        abtest_tag <- map["abtest_tag"]
        thumbnail_width <- map["thumbnail_width"]
        thumbnail_height <- map["thumbnail_height"]
        video_md5 <- map["video_md5"]
        video_url <- map["video_url"]
        video_duration <- map["video_duration"]
        video_width <- map["video_width"]
        video_height <- map["video_height"]
        video_length <- map["video_length"]
        video_type <- map["video_type"]
        cover_text <- map["cover_text"]
        thumbnail_url <- map["thumbnail_url"]
        video_log_id <- map["video_log_id"]
        auditing <- map["auditing"]
        format_matched <- map["format_matched"]
        origin_video_url <- map["origin_video_url"]
        video_size <- map["video_size"]
    }

}
